/* felx 布局--居中 */
@mixin normal-flex($x: center, $y: center) {
  display: flex;
  justify-content: $x;
  align-items: $y;
}
/* 单行省略 */
@mixin textEllipsis($row: 1) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 设置背景图 */
@mixin setBgi($url) {
  background-image: url($url);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
/* 基本按钮样式 */
@mixin btnStyle($color: #fff, $size: 32px) {
  color: $color;
  font-weight: bold;
  font-size: $size;
}

/* 文本基本样式 */
@mixin base-text($h, $fs, $fc, $fw: bold) {
  height: $h;
  font-size: $fs;
  font-family: PingFang SC;
  font-weight: $fw;
  color: $fc;
}
/* 放大动画 */
@keyframes dynamic {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
